package cn.iocoder.yudao.framework.business.eligibility.pojo.form;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class EligibilityPackageSaveDTO extends SaveDTO {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "月卡")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "有效天数", requiredMode = Schema.RequiredMode.REQUIRED, example = "30")
    @NotNull(message = "有效天数不能为空")
    private Integer days;

    @Schema(description = "销售价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "5000")
    @NotNull(message = "销售价格不能为空")
    private Integer price;

    @Schema(description = "划线价格/面额", example = "5000")
    private Integer linePrice;

}